-- GENERATED SPELL FOR [Ethereal Beacon] --


function spell0_18431(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(15254,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18431', 1000, 1)
end

function Sorts_18431(pUnit, Event)
local choix_sorts_18431 = math.random(0, 0)
if choix_sorts_18431 == 0 then
pUnit:RegisterEvent('spell0_18431', 1, 1)
end
end

function mob18431_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18431', math.random(1500, 3000), 1)
end

function mob18431_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18431_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18431_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18431, 1, 'mob18431_Action')
RegisterUnitEvent(18431, 2, 'mob18431_Leave')
RegisterUnitEvent(18431, 3, 'mob18431_Kill')
RegisterUnitEvent(18431, 4, 'mob18431_Die')
